AddTags
Description
call AddTags tags the specified load balancing instance.
Request Method
POST
Request Path
/apsara/route/Slb/AddTags
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
LoadBalancerId | BODY | string | Yes | lb-bp1b6c719dfa08ex**** | load balancing instance ID. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the load balancing instance. |
version | BODY | string | No | 2016-01-01 | version of api |
Tags | BODY | string | Yes | [{"TagKey":"Key1","TagValue":"Value1"},{"TagKey":"Key2","TagValue":"Value2"}] | Tag list to be added. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | 365F4154-92F6-4AE4-92F8-7FF34B540710 | request ID. |
Example
Successful Response example
{
"RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}
title: AddVServerGroupBackendServers
sidebar_position: 3
AddVServerGroupBackendServers
Description
call AddVServerGroupBackendServers to add back-end servers to the specified back-end server group.
Request Method
POST
Request Path
/apsara/route/Slb/AddVServerGroupBackendServers
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
VServerGroupId | BODY | string | Yes | rsp-cige6**** | server group ID. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the load balancing instance. |
BackendServers | BODY | string | Yes | [{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.XX.XX.6*", "Port":"80","Description":"test-112" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.XX.XX. 6", "Port":"80","Description":"test-113" }] | server group list. A single call can add up to 20 back-end servers. the server group list needs to contain the following parameters: ServerId: the instance ID of the backend server. is the ECS instance ID or ENI instance ID. Port: Required parameter, indicating the port used by the backend server. Valid values:1~65535. Weight: The weight of the backend server, value:0~100. The default value is 100. If the value is 0, the request will not be forwarded to the backend server. Type: backend server type, value: ecs: ECS instance (default). eni: ENI instance. Description:String type, optional, backend server description, 1-80 characters in length, allow letters, numbers, dashes (-), forward slashes (/), English periods (.), and underscores (_). Chinese is supported. ServerIp: instance IP of ECS or ENI. The example is as follows: example of mounting ECS:[{ "ServerId": "i-xxxxxxxxx", "Weight": "100", "Type": "ecs", "Port": "80", "Description": "test-112" }] mount ENI:[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port": "80", "Description": "test-112" }] mount ENI multi-IP:[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port": "80", "Description": "test-112" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166.**.**", "Port": "80", "Description": "test-113" }] |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
VServerGroupId | string | rsp-cige6j**** | server group ID. |
Type | string | ecs | backend server type, value: ecs(default):ECS instance. eni: ENI instance. |
ServerId | string | vm-231 | ECS instance ID or ENI instance ID. |
Description | string | test | backend server group description. |
RequestId | string | 9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C | request ID. |
BackendServer | No sample value for this parameter. | No description for this parameter. | |
Port | integer | 70 | the port used by the backend server. |
BackendServers | array of backendserver | No sample value for this parameter. | backend server list. |
Weight | integer | 100 | the weight of the back-end server. |
Example
Successful Response example
{
"VServerGroupId":"rsp-cige6j****",
"Type":"ecs",
"ServerId":"vm-231",
"Description":"test",
"RequestId":"9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C",
"BackendServer":"",
"Port":"70",
"BackendServers":"",
"Weight":"100"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}